<%@page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<%@include file="/WEB-INF/includes/taglibs.jsp" %>
<html>
<head>
<jsp:include page="/WEB-INF/includes/page-config.jsp">
	<jsp:param value="true" name="jqui"/>
	<jsp:param value="测试PageTest的CRUD" name="title"/>
</jsp:include>
</head>
<body>
<div id="body-wrapper">
<jsp:include page="/WEB-INF/includes/left.jsp"></jsp:include>
<div id="main-content">

	<div class="tab-content" id="tab1">
		<a class="button" href="${basePath}/page/samp/addPageTest.jsp?flag=new">新增</a>
		<table cellpadding="0" cellspacing="0">		
		<thead>
			<tr>
			   <th><input class="check-all" type="checkbox" /></th>
			   <th>品牌</th>
				<th>商品名称</th>
				<th>商品说明</th>
				<th>重量</th>
				<th>颜色</th>
				<th>操作</th>
			</tr>
		</thead>		
		<tbody>
			<c:forEach items="${pageSupport.resultList}" var="pa">
				<tr>
					<td><INPUT name="chkSon" id="chkSon1" type="checkbox" value='1' onclick="ChkSonClick('chkSon','chkAll')" /></td>
					<td>${pa.spec}</td>
					<td>${pa.goodsname}</td>
					<td>${pa.remark}</td>
					<td>${pa.weight}</td>
					<td>${pa.color}</td>
					<td>
					<a href="${basePath}/page/samp/updatePagesSample.do?flag=to&gid=${pa.gid}" title="Edit"><img src="${gImagePath}/icons/pencil.png" alt="Edit" /></a>
					 <a href="${basePath}/page/samp/deletePagesSample.do?gid=${pa.gid}" title="Delete"><img src="${gImagePath}/icons/cross.png" alt="Delete" /></a> 
					 </td>
				</tr>				
			</c:forEach>
		</tbody>
		<tfoot>
		<!-- 上下页 -->
		<tr>
			<td colspan="7" style="width:100%;height:100%">
				<jsp:include page="/WEB-INF/includes/pageBar.jsp" flush="true">
					<jsp:param value="${basePath}/page/samp/pagesSample.do" name="url"/>
				</jsp:include>	
			</td>
		</tr>
		</tfoot>
		</table>
	</div>
	<jsp:include page="/WEB-INF/includes/foot.jsp"></jsp:include>
	</div>
</div>
</body>
</html>


